//
//  DYZRegisteCheckController.m
//  DYZCars
//
//  Created by MF on 16/8/21.
//  Copyright © 2016年 MF. All rights reserved.
//

#import "DYZRegisteCheckController.h"
#import "UIColor+Addition.h"
#import "UILabel+Addition.h"
#import "UIButton+Addition.h"

@interface DYZRegisteCheckController ()

@end

@implementation DYZRegisteCheckController

- (void)viewDidLoad {
    [super viewDidLoad];
        self.view.backgroundColor = [UIColor colorWithHex:0xebeefe];
        self.navigationItem.title = @"注册审核";
    UILabel *checkLabel = [UILabel labelWithText:@"的注册申请，客服人员正在加紧审核当中，请等待。谢谢支持！" andTextColor:[UIColor colorWithHex:0x333333] andFontSize:17];
    [self.view addSubview:checkLabel];
    checkLabel.numberOfLines = 0;
    [checkLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(20);
        make.top.offset(96);
        make.right.offset(-20);
    }];
    
    UIButton *btn = [UIButton buttonWithText:@"返回登录页面" andTextColor:[UIColor whiteColor] backgroundColor:[UIColor colorWithHex:0x0073dd] andFontSize:17];
    [btn addTarget:self action:@selector(backToLoginController) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
    [btn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.view);
        make.width.offset(100);
        make.height.offset(50);
    }];
}

- (void)backToLoginController {
    [self.navigationController popToRootViewControllerAnimated:true];
}


@end
